﻿using Batman.Cms.Core.Utils;
using Batman.Jianbei.Forum.Core.Enums;
using System;

namespace Batman.Jianbei.Forum.Controllers.Posts.Responses
{
    public class PostResponse
    {
        public string Id { get; set; }

        public string Title { get; set; }

        public string TopicId { get; set; }

        public string TopicName { get; set; }

        /// <summary>
        /// 作者ID
        /// </summary>
        public string WxUserId { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string WxUserName { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime CreateAt { get; set; }

        /// <summary>
        /// 帖子状态
        /// </summary>
        public PostStatus Status { get; set; }

        /// <summary>
        /// 状态名称
        /// </summary>
        public string StatusName
        {
            get
            {
                return EnumUtil.GetDisplayName(Status);
            }
        }
    }
}
